package com.yunzhou.service.impl;

import com.yunzhou.entity.ForumArticleSetting;
import com.yunzhou.mapper.ForumArticleSettingMapper;
import com.yunzhou.service.ForumArticleSettingService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ForumArticleSettingServiceImpl implements ForumArticleSettingService {

    @Resource
    private ForumArticleSettingMapper forumArticleSettingMapper;

    @Override
    public ForumArticleSetting selectByArticleId(Long forumArticleId) {
        return forumArticleSettingMapper.selectByArticleId(forumArticleId);
    }

    @Override
    public int insert(ForumArticleSetting forumArticleSetting) {
        return forumArticleSettingMapper.insert(forumArticleSetting);
    }

    @Override
    public int update(ForumArticleSetting forumArticleSetting) {
        return forumArticleSettingMapper.update(forumArticleSetting);
    }

    @Override
    public int delete(Long forumArticleId) {
        return forumArticleSettingMapper.delete(forumArticleId);
    }
}
